package com.zhoukx.strategy.improve;

public class WilDuck extends Duck {
    // 构造器 闯入FLybehavor 对象
    public  WilDuck(){
     flyBehavior =    new GoodFlyBehavior();
    }
    @Override
    public void display() {
        System.out.println(" 这是个野鸭 ");
    }
}
